﻿using System.ComponentModel.DataAnnotations;

namespace AspAuthentication.Core
{
    /// <summary>
    /// Defines the class ChangePasswordModel
    /// </summary>
    public class ChangePasswordModel
    {
        /// <summary>
        /// Gets or sets the confirm password.
        /// </summary>
        /// <value>The confirm password.</value>
        public string ConfirmPassword{ get; set;}
        /// <summary>
        /// Gets or sets the old password.
        /// </summary>
        /// <value>The old password.</value>
        [Required(ErrorMessage = "required!"), StringLength(200, MinimumLength = 1)]
        public string OldPassword { get; set; }
        /// <summary>
        /// Gets or sets the new password.
        /// </summary>
        /// <value>The new password.</value>
        [Required(ErrorMessage = "required!"), StringLength(200, MinimumLength = 1)]
        public string NewPassword { get; set; }
    }
}